package io.geekidea.boot.headquarters.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.geekidea.boot.headquarters.dto.HeadquartersExcel;
import io.geekidea.boot.headquarters.entity.Headquarters;
import io.geekidea.boot.headquarters.query.HeadquartersQuery;
import io.geekidea.boot.outbound.dto.OutboundExcel;
import io.geekidea.boot.outbound.query.OutboundQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface HeadquartersMapper extends BaseMapper<Headquarters> {
    Page<Headquarters> getHeadquartersPageList(Page<Headquarters> page, @Param("param") HeadquartersQuery headquarters);

    int delById(@Param("id")Integer id);

    Headquarters getHeadquartersId(@Param("id")Integer id);

    List<HeadquartersExcel> getDownloadList(@Param("param") HeadquartersQuery headquarters);

}
